package com.guoyansoft.model.service;

import com.guoyansoft.config.R;
import com.guoyansoft.model.pojo.*;
import com.guoyansoft.model.pojo.Address;
import com.guoyansoft.model.pojo.Yardman;
import com.guoyansoft.model.pojo.YardmanAddress;
import com.guoyansoft.model.pojo.YardmanAndProductTeam;

import java.util.Map;

/**
 * @author ：高凡
 * @date ：Created in 2023-04-26-16:02
 * 调度员表service接口
 */
public interface YardmanService {
    R save(Yardman yardman);
    R drop(Integer[] id);
    R modify(Yardman yardman);
    R queryByPage(Map<String,Object> map);
    R queryAll(Map<String,Object>map);
    R queryAddress(Integer id);
    R queryProduct(Integer id);
    R selectByLogin(Yardman yardman);
    R saveYardmanAndAddress(YardmanAddress yardmanAddress);
    R saveYardmanAndProductTeam(YardmanAndProductTeam yardmanAndProductTeam);
    R modifyYardmanAndAddress(Map<String,Object> map);
    R modifyYardmanAndProduct(Map<String,Object> map);
    R dropYardmanAndAddress(Integer[] yardmanId);
    R dropYardmanAndProduct(Integer[] yardmanId);
    Yardman queryById(Integer id);
    /**
     * 查询对应区域的信息
     * @return
     */
    District queryByDistrict(Map<String,Object> params);


}
